import 'package:redux/redux.dart';
import 'package:flutter_app/model/user.dart';

final userReducer = combineReducers<User>([
  TypedReducer<User, MergeUserState>(_refresh),
]);

User _refresh(User userInfo, MergeUserState action) {
  userInfo = action.userInfo;
  return userInfo;
}

class MergeUserState {
  final User userInfo;

  MergeUserState(this.userInfo);
}
